package demo;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: syyyy
 * Date: 2025-07-07
 * Time: 13:17
 */
public class Test {
    public static void main(String[] args)
            throws CloneNotSupportedException {
        Student s1=new Student("小明",15);

        Student s2=(Student)s1.clone();

        System.out.println(s2.age);
    }
}


